package com.xu.cloud.common.pojo.http.resp;

import lombok.*;

import java.util.List;

/**
 * 分页查询响应体
 *
 * @author persimmon
 * @since 2023/3/29
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
public class PageResp<T> extends BaseResponse {
    private static final long serialVersionUID = -1355423071523994934L;
    /**
     * 总记录数
     */
    private long total;
    /**
     * 总页数
     */
    private long pageCount;
    /**
     * 页码
     */
    private int pageNum;
    /**
     * 每页大小
     */
    private int pageSize;
    /**
     * 分页数据
     */
    private List<T> records;
}
